package com.HomeWorkhsp.chapter13.string_;

public class StringExercise08 {
    public static void main(String[] args) {
        String a = "hello";
        String b = "abc";

        String c = a + b;
        String d = "helloabc";
        System.out.println(c == d);//false，是两个变量的相加，其引用指向堆
        String e = "hello" + "abc";
        System.out.println(d == e);//结果为true，因为都是指向池
    }
}
